<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        console.log(Math.PI);
        // 向上取整
        console.log(Math.ceil(1.1));//2
        //向下取整
        console.log(Math.ceil);
        //四舍五入
        console.log(Math.round(1.59)); 1
        console.log(Math.round(-1.5));//-1


        //最大值
        console.log(Math.max(1, 3, 66));
    </script>
</body>

</html>